home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
telecomm
/
turbo_sw.lzh
/
TURBO
/
DATABASE
/
DB002.000
< prev
next >
Wrap
Text File
|
1990-07-08
|
5KB
|
109 lines
VT-52 ESCAPE CODE GUIDE
~~~~~~~~~~~~~~~~~~~~~~~
A. Screen positions
The following functions control a cursor's position on
screen.
<ESC>A Cursor Up, the horizontal position stays same.
<ESC>B Cursor Down.
<ESC>C Cursor Right.
<ESC>D Cursor Left.
<ESC>H Cursor Home, move cursor to the upper left
corner of the screen.
<ESC>I Reverse Line Feed, same as <ESC>A except if the
cursor is in the top line, a blank line is
inserted and the remainder of the text is
scrolled down.
<ESC>L Insert Line, insert a blank line and the
remainder of the text is scrolled down and the
lowest line is lost.
<ESC>Yrowcolumn, move cursor to any place of the
screen. The row and column are calculated in
this way, take the row or column number and add
32, then find the character in ASCII decimal.
For example, <ESC>Y+A moves cursor to 11th row
33th column since '+' in ASCII is decimal 43 and
'A' is 65. Note that the upper left corner(home
position) is 0,0 and the other corner is 23,
79 in the meduim resolution.
<ESC>j Save cursor, to be restored by the next function
<ESC>k Restore cursor, move cursor to the position the
last <ESC>j is called.
B. Erase functions
The following functions perform erasing screen functions.
<ESC>E Clear whole screen, and move cursor home (0, 0).
<ESC>J Clear below cursor, from the cursor to the end
of the screen and the cursor position unchanged.
<ESC>K Clear to end of line, including the character at
the current position but cursor position is not
changed.
<ESC>M Delete line, and move the remainder of text up
one line.
<ESC>d Clear screen to the cursor, from home position
to current position, a complementary of <ESC>J.
<ESC>l Clear line, same as <ESC>M except the remainder
is not scrolled up.
<ESC>o Clear line from start, from the beginning of the
line to current position, a complementary of
<ESC>K.
C. Display attributes
The following fuctions change display attributes.
<ESC>e Cursor on, turn on the flashing cursor.
<ESC>f Cursor off, turn off the flashing cursor.
<ESC>p Reverse on, the foreground and background colors
are changed. For example, the status line on the
bottom of Flash! is in reversed video.
<ESC>q Reverse off, return back to normal video.
<ESC>v Wrap on, output beyond the edge of screen will
be wrapped.
<ESC>w Wrap off.
<ESC>bColor_number Foreground color, color for character
display. In medium resolution, 0-white, 1-red,
2-green, and 3-black.
<ESC>cColor_number Background color. Be careful not to
set the foreground color the same as background.
Code Function DEC's VT52 Vidtex
-----------------------------------------------------------
<ESC>A Cursor Up * *
<ESC>B Cursor Down * *
<ESC>C Cursor Right * *
<ESC>D Cursor Left * *
<ESC>H Cursor Home * *
<ESC>I Reverse Line Feed *
<ESC>L Insert Line
<ESC>Y row column * *
<ESC>j Save cursor *
<ESC>k Restore cursor *
<ESC>E Clear screen *
<ESC>J Clear below cursor * *
<ESC>K Clear end of line * *
<ESC>M Delete line
<ESC>d Clear screen to the cursor
<ESC>l Clear line
<ESC>o Clear line from start
<ESC>e Cursor on * *
<ESC>f Cursor off * *
<ESC>p Reverse on *
<ESC>q Reverse off *
<ESC>v Wrap on
<ESC>w Wrap off.
<ESC>b color_number Foreground color
<ESC>c color_number Background color